Declare Function CreateCompatibleDC Lib "Gdi" (ByVal hdc)
Declare Function DeleteDC Lib "Gdi" (ByVal hdc)
Declare Function DeleteObject Lib "Gdi" (ByVal hObject)
Declare Function ExtFloodFill Lib "Gdi" (ByVal hdc, ByVal X, ByVal Y, ByVal crColor As Long, ByVal wFillType)
Declare Function GetBitmapBits Lib "Gdi" (ByVal hBitmap, ByVal dwCount As Long, ByVal lpBits As Long) As Long
Declare Function GetDeviceCaps Lib "Gdi" (ByVal hdc, ByVal nIndex)
Declare Function GetMenu Lib "User" (ByVal hwnd)
Declare Function GetNearestColor Lib "Gdi" (ByVal hdc, ByVal RGBColor As Long) As Long
Declare Function GetPrivateProfileInt Lib "Kernel" (ByVal Appname As String, ByVal KeyName As String, ByVal DEFAULT As Integer, ByVal FileName As String)
Declare Function GetPrivateProfileString Lib "Kernel" (ByVal Appname As String, ByVal KeyName As String, ByVal DEFAULT As String, ByVal ReturnedString As String, ByVal MaxSize, ByVal FileName As String)
Declare Function GetSubMenu Lib "User" (ByVal hwnd, ByVal Position)
Declare Function GetSystemMenu Lib "User" (ByVal hwnd, ByVal bRevert)
Declare Function GlobalLock Lib "Kernel" (ByVal mMem) As Long
Declare Function GlobalUnlock Lib "Kernel" (ByVal mMem)
Declare Function InvertRect Lib "User" (ByVal hdc, lpRect As RECT)
Declare Function SelectObject Lib "Gdi" (ByVal hdc, ByVal hObject)
Declare Function SetBitmapBits Lib "Gdi" (ByVal hBitmap, ByVal dwCount As Long, ByVal lpBits As Long) As Long
Declare Function StretchBlt Lib "Gdi" (ByVal destHdc, ByVal X, ByVal Y, ByVal w, ByVal h, ByVal srcHdc, ByVal srcX, ByVal srcY, ByVal srcW, ByVal srcH, ByVal Rop As Long)
Declare Function TrackPopupMenu Lib "User" (ByVal hMenu, ByVal r1, ByVal X, ByVal Y, ByVal r2, ByVal hwnd, ByVal r3 As Long)
Declare Function WinHelp Lib "User" (ByVal hwnd, ByVal HelpFile$, ByVal wCommand, ByVal dwData As Long)
Declare Function WritePrivateProfileString Lib "Kernel" (ByVal Appname As String, ByVal KeyName As String, ByVal NewString As String, ByVal FileName As String)
'
' Window API Constant Declarations
'
Global Const SRCCOPY = &HCC0020
Global Const SRCAND = &H8800C6
Global Const SRCINVERT = &H660046
Global Const BLACKNESS = &H42&
Global Const FLOODFILLSURFACE = 1
Global Const MF_BYPOSITION = &H400
Global Const BITSPIXEL = 12
Global Const HELP_CONTEXT = &H1
Global Const HELP_QUIT = &H2
Global Const HELP_HELPONHELP = &H4
'
' INI file KeyNames
'
Global Const APP_NAME = "IconWorks"
Global Const KEY_COLOR = "Colors Row"
Global Const KEY_GRID = "Grid"
Global Const KEY_LINE_GRID = "Line Grid"
Global Const KEY_DOTTED_GRID = "Dotted Grid"
Global Const KEY_STATUS_BAR = "Status Bar"
Global Const KEY_TOOL_PALETTE = "Tool Palette"
Global Const KEY_COLOR_PALETTE = "Color Palette"
Global Const KEY_ZOOM_SCROLLBAR = "Zoom Scrollbar"